package com.hxn.wxshake.bean;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @ClassName Data
 * @Description TODO
 * @Author hxn
 * @Date 2019/8/2 11:42
 * @Version 1.0
 **/
@lombok.Data
@AllArgsConstructor
@NoArgsConstructor
public class Data {

    //用户名
    private String username;
    //摇动次数
    private String num;
    //性别
    private String gender;

    public String getInitDataString(final String username,final String gender){
        return getDataString(username,"0",gender);
    }
    public String getDataString(final String username,final String num,final String gender){
        this.username = username;
        this.num = num;
        this.gender = gender;
        return this.username+"-"+this.num+"-"+this.gender;
    }
}
